package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_advertisement")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AdvertisementModel {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;//标题

    private String imgUrl;//图片地址


    private Integer userType;//1个人2企业

    private String crtTime;//创建时间

    private String linkUrl;//广告链接

    private Integer seat;//1小程序首页，2PC招聘首页位置1，2PC招聘首页位置2

    @TableField(exist = false)
    private String[] imgUrlList;//图片地址集合
    @TableField(exist = false)
    private String[] linkUrlList;//广告链接
    @TableField(exist = false)
    private Integer[] seatList;
    @TableField(exist = false)
    private String userTypeText;
    @TableField(exist = false)
    private String seatText;
    @TableField(exist = false)
    private Integer page;
    @TableField(exist = false)
    private Integer limit;
    @TableField(exist = false)
    private List<AdvertisementSonModel> sonModelList;


}
